package com.lank.gateway.controller;

import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @author 郑海宾
 * @since 2022/7/19 周二
 */
@RestController
public class Controller {
    /**
     * 暂时兼容若依方案
     *
     * @return map
     */
    @GetMapping("code")
    @ApiOperation(value = "获取验证码", notes = "获取验证码")
    public Map<String, Object> code() {
        Map<String, Object> map = new HashMap<>();
        Map<String, Object> map1 = new HashMap<>();
        map1.put("captchaEnabled", false);
        map.put("code", 200);
        map.put("data", map1);
        return map;
    }
}
